package com.alibaba.bos.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.alibaba.bos.dao.base.FixedAreaRepository;
import com.alibaba.bos.domain.base.FixedArea;
import com.alibaba.bos.service.base.FixedAreaService;

public class FixedAreaServiceImpl implements FixedAreaService {

    @Autowired
    private FixedAreaRepository fixedAreaRepository;
    @Override
    public void save(FixedArea model) {
        fixedAreaRepository.save(model);
    }
    
    //带条件分页查询
    @Override
    public Page<FixedArea> findPageData(Specification<FixedArea> specification, Pageable pageable) {
        // TODO Auto-generated method stub
        return fixedAreaRepository.findAll(specification,pageable);
    }
    
  
   

}
